import { createRouter, createWebHistory } from 'vue-router'
import Today from '@/components/Today.vue'
import Important from '@/components/Important.vue'
import Planned from '@/components/Planned.vue'
import TaskManager from '@/components/TaskManager.vue'
import Assigned from '@/components/Assigned.vue'
const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      redirect: '/today'
    },
    {
      path: '/today',
      name: 'Today',
      component: Today
    },
    {
      path: '/important',
      name: 'Important', 
      component: Important
    },
    {
      path: '/planned',
      name: 'Planned',
      component: Planned
    },
    {
      path: '/assigned',
      name: 'Assigned',
      component: Assigned
    },
    {
      path: '/tasks',
      name: 'Tasks',
      component: TaskManager
    },
  ],
})

export default router
